package com.gezi.admin.utils.wx.weapp.model;

import com.alibaba.fastjson.JSON;
import lombok.Data;

@Data
public class AccessTokenModel {

    /**
     * access_token : 25_T_fh8Sh1XafPRvBBWmdLPIxUj_k4IFH99GsyUD0ZUI47YMsPSaFQ_DyL_EH68zt8lv2TEEatT2hTVUkQHxwDuIpLYgptWDx0-oGdJ21a_dJiANNT9sZKefCu2kQBSrIZVfXCYb-2WcMB8g9uJFVfAEAWSI
     * expires_in : 7200
     */

    private String access_token;
    private int expires_in;

    private int errcode;
    private String errmsg;

    public static AccessTokenModel objectFromData(String str) {
        return JSON.parseObject(str, AccessTokenModel.class);
    }
}
